﻿using AiXiu.Model;
using System.Collections.Generic;

namespace AiXiu.IBLL
{
    /// <summary>
    /// 评论业务管理接口
    /// </summary>
    public interface IDiscussManager
    {
        /// <summary>
        /// 添加评论
        /// </summary>
        /// <param name="videoId">视频Id</param>
        /// <param name="discuss">评论</param>
        bool Add(string videoId, Discuss discuss);

        /// <summary>
        /// 评论计数
        /// </summary>
        /// <param name="videoId"></param>
        /// <returns></returns>
        long Count(string videoId);

        /// <summary>
        /// 查询评论列表
        /// </summary>
        /// <param name="videoId"></param>
        /// <param name="pageNumber"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<Discuss> QueryDiscusses(string videoId, int pageNumber, int pageSize = 10);
    }
}